home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.app;
-
- public class DocumentPreferences extends BaseInfo {
- protected static final String LOG_CHANGES = (new String("LOG_CHANGES")).intern();
- protected static final String PROMPT_WHEN_SAVING = (new String("PROMPT_WHEN_SAVING")).intern();
- protected static final String NAME_DEFAULT = (new String("NAME_DEFAULT")).intern();
-
- public static DocumentPreferences createDocumentPreferences(String var0) {
- DocumentPreferences var1 = new DocumentPreferences(var0);
- return var1.invalid ? null : var1;
- }
-
- private DocumentPreferences(String var1) {
- super(var1);
- }
-
- public DocumentPreferences() {
- this(false, false);
- }
-
- public DocumentPreferences(boolean var1, boolean var2) {
- super.properties.put(LOG_CHANGES, var1 ? Boolean.TRUE.toString() : Boolean.FALSE.toString());
- super.properties.put(PROMPT_WHEN_SAVING, var2 ? Boolean.TRUE.toString() : Boolean.FALSE.toString());
- }
-
- public boolean getPromptForVersionInfo() {
- return ((BaseInfo)this).getBoolean(PROMPT_WHEN_SAVING);
- }
-
- public void setPromptForVersionInfo(boolean var1) {
- super.properties.put(PROMPT_WHEN_SAVING, var1 ? Boolean.TRUE.toString() : Boolean.FALSE.toString());
- }
-
- public boolean getChangeLogging() {
- return ((BaseInfo)this).getBoolean(LOG_CHANGES);
- }
-
- public void setChangeLogging(boolean var1) {
- super.properties.put(LOG_CHANGES, var1 ? Boolean.TRUE.toString() : Boolean.FALSE.toString());
- }
-
- public String getNameDefault() {
- return ((BaseInfo)this).getString(NAME_DEFAULT);
- }
-
- public void setNameDefault(String var1) {
- super.properties.put(NAME_DEFAULT, var1);
- }
- }
-